package Loganseabolt.weapons;

import net.minecraft.client.renderer.texture.IconRegister;
import net.minecraft.entity.EntityLiving;
import net.minecraft.item.EnumToolMaterial;
import net.minecraft.item.ItemStack;
import net.minecraft.item.ItemSword;
import net.minecraft.potion.Potion;
import net.minecraft.potion.PotionEffect;

public class Death_Scycthe extends ItemSword 
{

	public Death_Scycthe(int par1, EnumToolMaterial par2EnumToolMaterial) {
		super(par1, par2EnumToolMaterial);
		// TODO Auto-generated constructor stub
	}
	public void registerIcons(IconRegister iconReg)
    {
        itemIcon = iconReg.registerIcon("LoganSeaboltModBase:Scythe");
    }
	public boolean hitEntity(ItemStack par1ItemStack, EntityLiving par2EntityLiving, EntityLiving par3EntityLiving)
    {
        par1ItemStack.damageItem(5, par3EntityLiving);
        /*
        this.potionID = par1;
        this.duration = par2;
        this.amplifier = par3;
        this.isAmbient = par4;
        */
        //if ((EntitySkeleton)par2EntityLiving  != null)
        //{
        //	par2EntityLiving.addPotionEffect(new PotionEffect(Potion.heal.id, 5000, 1, false));
        //}
        // if ((EntityZombie)par2EntityLiving != null)
        //{
        	//par2EntityLiving.addPotionEffect(new PotionEffect(Potion.heal.id, 5000, 1, false));
        //}
        par2EntityLiving.addPotionEffect(new PotionEffect(Potion.confusion.id, 5000, 1, false));
        par2EntityLiving.addPotionEffect(new PotionEffect(Potion.wither.id, 5000, 1, false));
        par2EntityLiving.addPotionEffect(new PotionEffect(Potion.moveSlowdown.id, 5000, 1, false));
        par2EntityLiving.addPotionEffect(new PotionEffect(Potion.digSlowdown.id, 5000, 1, false));
        par2EntityLiving.addPotionEffect(new PotionEffect(Potion.blindness.id, 5000, 1, false));
        par2EntityLiving.addPotionEffect(new PotionEffect(Potion.jump.id, 10000, 1, false));
        par2EntityLiving.addPotionEffect(new PotionEffect(Potion.weakness.id, 5000, 1, false));
        return true;
    }
}
